//
//  Common.swift
//  SYWeibo
//
//  Created by Eric on 16/7/20.
//  Copyright © 2016年 Eric. All rights reserved.
//

import UIKit
// 微博app切换根控制器的通知
let WBSwitchRootViewControllerNoti = "WBSwitchRootViewControllerNoti"
//微博账号
let vbName = "shenshidewenhou@sina.com"
let vbPasswd = "shengyu3051679"

//新浪微博相关的信息
let APPKEY = "469772390"
let APPSECRER = "01e2a88ee60f977426ab397fb44be601"

//
//// 微博账号
//let vbName = "rangyuan05788697@163.com"
//let vbPasswd = "bbb333"
//
//// 新浪微博相关信息
//let APPKEY = "1404047637"
//let APPSECRER = "a2365ea2fc24f96804f4fc35a1259dcb"

//回调页
let APPREDIRECT_URL = "http://www.baidu.com"

//回调页
//app主题的颜色
let ThemeColor = UIColor.orangeColor()

//屏幕的宽和高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height
//RGB颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor{
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha:alpha)

}

//随机颜色
func RandomColor()->UIColor{
let r = random()%256
let g = random()%256
let b = random()%256
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}